#pragma once

using namespace rapidxml;

class PropertyMgr
{
private:
	PropertyMgr() = default;
	~PropertyMgr();

	double time = 0;

	std::vector<Property *> properties;

public:
	static PropertyMgr * getInstance();

	void create(const std::wstring & pname, int x, int y);
	void create(xml_node<wchar_t> * prop);

	void update(double dtime);
	void draw(Graphics * graphics);
	void clear();
};